<template>
  <div class="hamburger-container flex align-center" @click="toggleClick">
    <i v-if="isActive" class="icon iconfont icon-menu-open"></i>
    <i v-else class="icon iconfont icon-menu-close"></i>
  </div>
</template>

<script setup lang="ts">
defineProps({
  isActive: { type: Boolean, default: false },
})
const emits = defineEmits(['toggleClick'])

const toggleClick = () => emits('toggleClick')
</script>

<style lang="scss" scoped>
.hamburger-container {
  cursor: pointer;
  height: 100%;
  padding: 0 10px;
  transition: background-color 0.3s;

  &:hover {
    background-color: rgba(0, 0, 0, 0.09);
  }

  .icon {
    font-size: 28px;
  }
}
</style>
